package com.tomorrow.fallback;

import com.tomorrow.feign.UserClient;
import com.tomorrow.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {
    @Override
    public User findUserById(Integer id) {
        User user = new User();
        user.setUsername("服务器繁忙，请稍后再试！");
        return user;
    }
}